package com.codeczx.animationdemo;

import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.codeczx.animationdemo.excessive.AActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.btn_tween)
    Button btnTween;
    @BindView(R.id.btn_excessive)
    Button btnExcessive;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @OnClick({R.id.btn_tween, R.id.btn_excessive})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_tween:
                startActivity(new Intent(MainActivity.this, TweenActivity.class));
                break;
            case R.id.btn_excessive:
                startActivity(new Intent(MainActivity.this, AActivity.class));
                break;
        }
    }
}
